﻿using System;

namespace FBGraph
{
    /// <summary>Specifies metadata for <see cref="FBGraphApiErrorType" /> values.</summary>
    [AttributeUsage(AttributeTargets.Field, AllowMultiple = false, Inherited = false)]
    public sealed class FBGraphApiErrorAttribute : Attribute
    {
        /// <summary>Initializes an instance of <see cref="FBGraphApiErrorAttribute" />.</summary>
        /// <param name="message">The error message the corresponds with the decorated value.</param>
        public FBGraphApiErrorAttribute(String message)
        {
            this.Message = message;
        }

        /// <summary>Gets the error message that corresponds with the decorated value.</summary>
        public String Message { get; private set; }
    }
}